package com.uk.data.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


public class Leximi implements Serializable{

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	@JoinColumn(name="KONTRATA_ID")
	private Kontrata kontrata;
	
	@Temporal(TemporalType.DATE)
	@Column(name="DATA_LEXIM")
	private Date dataLexim;
	
	private double vlera;
	
	private boolean afrofe;
	
	
}
